import { ref, computed } from 'vue'
import { defineStore } from 'pinia'

export const useCounterStore = defineStore('user', () => {
  const piniaUser = ref[{
     username:localStorage.getItem('user'),
      email:'1221321312@qq.com',
      src:'https://fastly.jsdelivr.net/npm/@vant/assets/cat.jpeg',
  }]
  return { piniaUser}
},
  {
    persist: true,
  },
)
